import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import EInteract from './views/EInteract.vue'
import Opinion from './views/Opinion.vue'
import Statute from './views/Statute.vue'
import DataInfo from './views/DataInfo.vue'
import UserAgreement from './views/UserAgreement.vue'
import SubscriptionAgreement from './views/SubscriptionAgreement.vue'
import NewsDetail from './views/NewsDetail.vue'
import ServiceIntro from './views/ServiceIntro.vue'
import ServiceCata from './views/ServiceCata.vue'
import ActivityIntro from './views/ActivityIntro.vue'
import CustomSceneOne from './views/CustomSceneOne.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/detail',
      name: 'detail',
      component: NewsDetail
    },
    {
      path: '/interact',
      name: 'interact',
      component: EInteract
    },{
      path: '/opinion',
      name: 'opinion',
      component: Opinion
    },{
      path: '/dataInfo',
      name: 'dataInfo',
      component: DataInfo
    },{
      path: '/statute',
      name: 'statute',
      component: Statute
    },{
      path: '/UserAgreement',
      name: 'UserAgreement',
      component: UserAgreement
    },{
      path: '/SubscriptionAgreement',
      name: 'SubscriptionAgreement',
      component: SubscriptionAgreement
    },
    {
      path: '/serviceIntro',
      name: 'ServiceIntro',
      component: ServiceIntro
    },
    {
      path: '/serviceCata',
      name: 'ServiceCata',
      component: ServiceCata
    },
    {
      path: '/activity',
      name: 'ActivityIntro',
      component: ActivityIntro
    },
    {
      path: '/scene1',
      name: 'CustomSceneOne',
      component: CustomSceneOne
    },
  ],
  // scrollBehavior(to, from,savedPosition) {
  //   return {
  //     x: 0,
  //     y: 0
  //   }
  // }
})
